<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=yes">
    <title>首页</title>
    <style type="text/css">
        .long_button {
            display: block;
            border: 1px solid;
            font-weight: 700;
            margin: 5px;
            height: 33px;
            line-height: 33px;
            text-align: center;
            letter-spacing: 0.5em;
            color: #fff;
            background-color: #0a7e81;
        }
  </style>
    <script type="text/javascript">

    window.onEmpReady=function(){
      if(emp){
        emp.toast.show({msg:"window.onEmpReady"})
      }
      //alert("window.onEmpReady");
      // alert("window.onEmpReady,emp is:" + JSON.stringify(window.emp) );
    }

    window.onResume = function(){
      //alert("window.onResume");
      if(emp){
        //emp.toast.show({msg:"window.onResume"})
      }
    }

    window.onresize = function(){
      //alert("window.onresize");
      if(emp){
        //emp.toast.show({msg:"window.onresize"})
      }
    }

    document.addEventListener("visibilitychange", function(evt){
        //alert("visibilitychange:"+evt);
        if(emp){
          //emp.toast.show({msg:"visibilitychange:"+evt})
        }
    });
  </script>
</head>

<body>
<a class="long_button" id="debugInfo" onclick="checkEmp()">调试信息输出</a>
<H2>窗口</H2>
<a class="long_button" onclick="checkEmp()">查询emp对象</a>
<a class="long_button" onclick="windowclose('')">关闭窗口</a>
<a class="long_button" onclick="windowclose('iapppdf,this')">关闭iapppdf窗口</a>

<H3>金格控件</H3>
<a class="long_button" onclick="openPdfFile()">金格pdf签批</a>
<a class="long_button" onclick="openPdfFileV2_toolbarPro('layout1')">金格pdf签批V2-new toolbar-L1</a>
<a class="long_button" onclick="openPdfFileV2_toolbarPro('layout2')">金格pdf签批V2-new toolbar-L2</a>
<a class="long_button" onclick="openPdfFileV2('layout1')">金格pdf签批V2-layout1</a>
<a class="long_button" onclick="openPdfFileV2_szf('layout1')">金格pdf签批V2-szf</a>
<a class="long_button" onclick="openPdfFileV2('layout2')">金格pdf签批V2-layout2</a>
<a class="long_button" onclick="h5SidebarClose()">pdf签批关闭H5侧边栏</a>
<a class="long_button" onclick="h5SidebarSaveForm()">H5侧边栏保存表单</a>
<a class="long_button" onclick="openFileInner1('pdf')">在当前签批打开pdf1</a>
<a class="long_button" onclick="openFileInner2('pdf')">在当前签批打开pdf2</a>
<a class="long_button" onclick="openFileInner3('pdf')">在当前签批打开pdf3</a>

<H3>input输入和选文件</H3>
<a id="getFocus" class="long_button" onclick="showSoftKeyboard()">获取焦点并显示键盘</a>
<input value="语音输入测试1" type="text" speech x-webkit-speech onwebkitspeechchange="alert(this.value)"/>
<input type="text" value="语音输入测试2" x-webkit-speech="x-webkit-speech" onwebkitspeechchange="alert(this.value)"/>
<input value="选择文件测试" type="file" id="file" name="file" onchange="show(this.files)"/>
<input id="testInput" value="文本输入测试" type="search" />

<br/>
<br/>
<script src="./iAppPdfTest.js" type="text/javascript"></script>
<script type="text/javascript">

</script>
</body>

</html>



